package com.tiancheng.trade.settlement.vo.settlement.admin;

import lombok.Data;
import org.apache.commons.lang3.StringUtils;

@Data
public class AbnormalDataQueryVO {
    private String merchantCode;//商户号
    private String subMchId;//业务侧商户号
    private String productName;//商户名称
    private String orderId;//主订单号
    private String subOrderId;//子订单号
    private String isException;//是否有记帐错误
    private String statementDateBegin;//银行帐单日期
    private String statementDateEnd;//银行帐单日期
    private String clearDateBegin;//清分日期
    private String clearDateEnd;//清分日期
    private String errorType;//0:平台有 1:平台无
    private String orderSource;//业务场景
    private String shouldBillDateBegin;//对账时间
    private String shouldBillDateEnd;//对账时间
    private Integer currentPage;//当前页码
    private Integer pageSize;//每页条数

    public Integer getCurrentPage() {
        if (null == currentPage || currentPage < 0) {
            currentPage = 1;
        }
        return currentPage;
    }

    public Integer getPageSize() {
        if (null == pageSize) {
            pageSize = 10;
        }
        return pageSize;
    }

    public String getMerchantCode() {
        if (StringUtils.isNotEmpty(merchantCode)) {
            merchantCode = merchantCode.trim();
        }
        return merchantCode;
    }

    public String getProductName() {
        if (StringUtils.isNotEmpty(productName)) {
            productName = productName.trim();
        }
        return productName;
    }

    public String getOrderId() {
        if (StringUtils.isNotEmpty(orderId)) {
            orderId = orderId.trim();
        }
        return orderId;
    }

    public String getSubOrderId() {
        if (StringUtils.isNotEmpty(subOrderId)) {
            subOrderId = subOrderId.trim();
        }
        return subOrderId;
    }
}
